package fi.profecons.csswindows;

import java.io.File;

import javax.servlet.ServletContext;

public class Util {
	
	private static ServletContext context;

	protected static ServletContext getContext() {
		return context;
	}

	protected static void setContext(ServletContext context) {
		Util.context = context;
	}
	
	public static File getFile(String filename){
		
		File file = new File(context.getRealPath(filename));
		return file;
	}

}
